﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace skags.Models
{
    public class PageTablesViewModel
    {
        public IEnumerable<Page> Pages { get; set; }
        public IEnumerable<PageCategory> Categories { get; set; }
    }

    public class PageViewModel
    {
        public int ID { get; set; }
        public string Title { get; set; }
        public System.Guid CreatorID { get; set; }
        public string CreatorName { get; set; }
        public DateTime DateCreated { get; set; }
        public string Text { get; set; }
        public int ParentID { get; set; }
        public string ParentName { get; set; }
        public bool? SubPage { get; set; }
        public IEnumerable<SubPageViewModel> SubPages { get; set; }
    }

    public class SubPageViewModel
    {
        public int ID { get; set; }
        public string Title { get; set; }
        public System.Guid CreatorID { get; set; }
        public string CreatorName { get; set; }
        public DateTime DateCreated { get; set; }
        public string Text { get; set; }
        public int ParentID { get; set; }
        public string ParentName { get; set; }
    }

    public class PageCategoryViewModel
    {
        public int ID { get; set; }
        public string Title { get; set; }
    }

    public class PageCatViewModel
    {
        public int ID { get; set; }
        public string Title { get; set; }
        public System.Guid CreatorID { get; set; }
        public DateTime DateCreated { get; set; }
        public string Text { get; set; }
        public int ParentID { get; set; }
        public string ParentName { get; set; }
        public bool? SubPage { get; set; }
        public IEnumerable<PageCategoryViewModel> Categories { get; set; }
    }

    public class DisplayPageViewModel
    {
        public SubPageViewModel Page { get; set; }
        public IEnumerable<PageViewModel> Nav { get; set; }
    }
}